package com.njtoyo.taxi.admin.rest.presenter.business.driver;

import com.njtoyo.taxi.admin.mapper.master.enums.DriverScoreDeductingCategory;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@ApiModel(value = "司机扣分列表、详情查询")
public class ScoreDeductingPresenter {

    private Long id;

    @ApiModelProperty(value = "分数")
    private Integer deduction;

    private DriverScoreDeductingCategory category;

    private Long referenceId;

    @ApiModelProperty(value = "扣分说明")
    private String detail;

    private Driver driver;
    private Canton canton;
    private Taxi taxi;
    private Company company;
    private RideCancellation rideCancellation;

    private Date startedAt;
    private Date endedAt;

    @Data
    public static class Driver {
        private Long id;
        private String name;
        private String mobileNumber;
    }

    @Data
    public static class Canton {
        private Long id;
        private String name;
    }

    @Data
    public static class Taxi {
        private Long id;
        private String plateNumber;
    }

    @Data
    public static class Company {
        private Long id;
        private String name;
    }

    @Data
    public static class RideCancellation {
        private Long id;
        private Long rideId;
    }

}
